package demo2;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 28779
 * Date: 2023-03-28
 * Time: 10:08
 */


public class Test {          //测试类
    public static void main(String[] args) {
        Computer computer = new Computer();
        computer.powerOn();
        System.out.println("==============");
        computer.usbDevice(new KeyBoard());
        System.out.println("==============");
        computer.usbDevice(new Mouse());
        System.out.println("==============");
        computer.powerOff();
    }
}

